/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race Alaskan Native Aleut Chugach</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15705 (C-0-T14914-S14915-S15470-S15690-S15705-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAlaskanNativeAleutChugach()
 * @model extendedMetaData="name='RaceAlaskanNativeAleutChugach'"
 * @generated
 */
public enum RaceAlaskanNativeAleutChugach implements Enumerator {
	/**
	 * The '<em><b>19844</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19844_VALUE
	 * @generated
	 * @ordered
	 */
	_19844(0, "_19844", "1984-4"),

	/**
	 * The '<em><b>19851</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19851_VALUE
	 * @generated
	 * @ordered
	 */
	_19851(1, "_19851", "1985-1"),

	/**
	 * The '<em><b>19869</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19869_VALUE
	 * @generated
	 * @ordered
	 */
	_19869(2, "_19869", "1986-9"),

	/**
	 * The '<em><b>19877</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19877_VALUE
	 * @generated
	 * @ordered
	 */
	_19877(3, "_19877", "1987-7"),

	/**
	 * The '<em><b>19885</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19885_VALUE
	 * @generated
	 * @ordered
	 */
	_19885(4, "_19885", "1988-5");

	/**
	 * The '<em><b>19844</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19844</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19844
	 * @model literal="1984-4"
	 * @generated
	 * @ordered
	 */
	public static final int _19844_VALUE = 0;

	/**
	 * The '<em><b>19851</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19851</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19851
	 * @model literal="1985-1"
	 * @generated
	 * @ordered
	 */
	public static final int _19851_VALUE = 1;

	/**
	 * The '<em><b>19869</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19869</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19869
	 * @model literal="1986-9"
	 * @generated
	 * @ordered
	 */
	public static final int _19869_VALUE = 2;

	/**
	 * The '<em><b>19877</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19877</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19877
	 * @model literal="1987-7"
	 * @generated
	 * @ordered
	 */
	public static final int _19877_VALUE = 3;

	/**
	 * The '<em><b>19885</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19885</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19885
	 * @model literal="1988-5"
	 * @generated
	 * @ordered
	 */
	public static final int _19885_VALUE = 4;

	/**
	 * An array of all the '<em><b>Race Alaskan Native Aleut Chugach</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAlaskanNativeAleutChugach[] VALUES_ARRAY =
		new RaceAlaskanNativeAleutChugach[] {
			_19844,
			_19851,
			_19869,
			_19877,
			_19885,
		};

	/**
	 * A public read-only list of all the '<em><b>Race Alaskan Native Aleut Chugach</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAlaskanNativeAleutChugach> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race Alaskan Native Aleut Chugach</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAlaskanNativeAleutChugach get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAlaskanNativeAleutChugach result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race Alaskan Native Aleut Chugach</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAlaskanNativeAleutChugach getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAlaskanNativeAleutChugach result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race Alaskan Native Aleut Chugach</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAlaskanNativeAleutChugach get(int value) {
		switch (value) {
			case _19844_VALUE: return _19844;
			case _19851_VALUE: return _19851;
			case _19869_VALUE: return _19869;
			case _19877_VALUE: return _19877;
			case _19885_VALUE: return _19885;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAlaskanNativeAleutChugach(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAlaskanNativeAleutChugach
